package com.wewins.fota.constant;

import org.springframework.http.HttpStatus;

public interface FotaConst {
    String REDIS_KEY_SERNER_NAME = "fota:sourceName";
    String SERVER_NAME = "fota-source-server";
    String REDIS_KEY_LOG_LIST = "fota:log:queue";
    String REDIS_KEY_INVALID_FILE = "fota:pkg:invalid";
    String REDIS_KEY_SERVER_INFOS = "fota:cache:servers:%s";
    String REDIS_KEY_SYS_LOG = "fota:cache:sys-log";

    int STATUS_SUCCESS = 1;
    int STATUS_FAILED = 0;
    int STATUS_OK = HttpStatus.OK.value();
    int STATUS_ERROR = HttpStatus.BAD_REQUEST.value();
    int STATUS_FORBIDDEN = HttpStatus.FORBIDDEN.value();
    int STATUS_UNAUTHORIZED = HttpStatus.UNAUTHORIZED.value();
    String MSG_FAIL_SERVER_EXCEPTION = "FOTA_SERVER_INNER_EXCEPTION";
    String MSG_FAIL_BIND_PARAM_EXCEPTION = "FOTA_REQ_PARAM_BIND_EXCEPTION";
    String MSG_FAIL_FILE_NOT_EXIST = "FILE_NOT_EXIST";
}
